package com.ashin.context;

import java.util.List;

/**
 * 设置和获取忽略租户的表列表信息
 */
public class TenantIgnoreTableContext {

    private static final InheritableThreadLocal<List<String>> userDefinedIgnoreTables = new InheritableThreadLocal<>();

    public TenantIgnoreTableContext() {
    }

    public static List<String> getUserDefinedIgnoreTables() {
        return  userDefinedIgnoreTables.get();
    }

    public static void setUserDefinedIgnoreTables(List<String> definedIgnoreTables) {
        userDefinedIgnoreTables.set(definedIgnoreTables);
    }

    public static void removeUserDefinedIgnoreTables() {
        userDefinedIgnoreTables.remove();
    }
}